package net.cn_su.sharpeyes.beans;

import java.util.List;

/**
 * 组织结构
 * Created by Overlord on 2016/08/16.
 * Singularity Universe
 */

public class Organization {

    public Organization(int id, int org_type, String name, int child_size) {
        this.id = id;
        this.org_type = org_type;
        this.name = name;
        this.child_size = child_size;
    }

    public Organization() {
    }

    /**
     * id : 2
     * name : t乡镇1
     * children : [{"id":4,"code":"0004","name":"t乡镇1-村1","org_type":2,"parent_id":2,"position":100,"created_at":"2016-09-18T09:38:14.000+08:00","updated_at":"2016-09-18T09:38:14.000+08:00","status":-1}]
     */

    private int child_size = 0;
    private int org_type = 0;
    private int id;
    private String code;
    private String name;
    private int parent_id;
    private int position;
    private String created_at;
    private String updated_at;
    private int status;

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public int getParent_id() {
        return parent_id;
    }

    public void setParent_id(int parent_id) {
        this.parent_id = parent_id;
    }

    public int getPosition() {
        return position;
    }

    public void setPosition(int position) {
        this.position = position;
    }

    public String getCreated_at() {
        return created_at;
    }

    public void setCreated_at(String created_at) {
        this.created_at = created_at;
    }

    public String getUpdated_at() {
        return updated_at;
    }

    public void setUpdated_at(String updated_at) {
        this.updated_at = updated_at;
    }

    public int getStatus() {
        return status;
    }

    public void setStatus(int status) {
        this.status = status;
    }

    public int getOrg_type() {
        return org_type;
    }

    public void setOrg_type(int org_type) {
        this.org_type = org_type;
    }

    /**
     * id : 4
     * code : 0004
     * name : t乡镇1-村1
     * org_type : 2
     * parent_id : 2
     * position : 100
     * created_at : 2016-09-18T09:38:14.000+08:00
     * updated_at : 2016-09-18T09:38:14.000+08:00
     * status : -1
     */


    public int getChild_size() {
        return child_size;
    }

    public void setChild_size(int child_size) {
        this.child_size = child_size;
    }

    private List<Organization> children;

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public List<Organization> getChildren() {
        return children;
    }

    public void setChildren(List<Organization> children) {
        this.children = children;
    }


}
